<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.yaodian100.core.common.utils.ServerValue"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="/WEB-INF/tld/pageutil.tld" prefix="pu"%>
<%@ include file="/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" href="/css/jquery.tooltip.css" />
<script src="/js/jquery.tooltip.min.js" type="text/javascript"></script>
<script language="javascript">
	$().ready(function(){
		$("tr[id*='tdDesc_']").tooltip();
	});
</script>
</head>
<body>
    <div style ="padding: 3px; border: solid 1px #cccccc; text-align: center" >
       <s:if test="products.size > 0">       
       <table class="tb-1" width="100%">
		<thead>
			<tr>
				<th>#</th>
				<th>商品名称</th>
				<th>商品型态(0:一般商品,1:预购,2:贈品,3:配件)</th>
				<th>是否为虚拟商品(Y/N)</th>
				<th>建议分类</th>
				<th>商品成本</th>
				<th>厂商建议售价（市价）</th>
				<th>批次编号</th>
			</tr>
		</thead>
		<tbody>
			 <c:forEach items="${products}" var="product" varStatus="rows_index">
				<tr class="${rows_index.count % 2 == 0 ? 'bg-yl' : ''}" id="tdDesc_${rows_index.count}" title="建立者:${product.createUser} 建立日期:${product.createDate}<br/>修改者:${product.modifyUser} 修改日期:${product.modifyDate}">
					<td>${product.id}</td>
					<td>${product.name}</td>
					<td>${prodTpMenu.options[pu:toString(product.type)].name}</td>
					<td>${product.isVirtual }</td>
					<td>${product.proposeCategoryId }</td>
					<td>${product.cost }</td>
					<td>${product.listPrice }</td>
					<td>${product.proposeProductBatchId}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>   
	<BR/><a href="<%=ServerValue.getMidContextPath()%>/proposeProductImg/uploadImg.do?prpsPrdctBatchId=${prpsPrdctBatchId}&flag=Y" >继续上传图片档案</a>
	<BR/>注意事项：如无法此次上传，请记住批次编号，作为下次上传图片的依据。   
	</s:if>
	<BR/> 处理明细如下：
	<BR/> 上传资料笔数：${countTotal}笔
	<BR/> 成功笔数：${resultList['successNum']} 笔
	<BR/> 失败笔数：${resultList['failNum']}笔
	<BR/> 成功生成商品数：${resultList['successNumP']} 笔
	<BR/> 失败生成商品数：${resultList['failNumP']}笔<br/><br/>
	<!-- java exception message-->
	 <c:forEach items="${resultList['failReason']}" var="message" varStatus="rows_index">
				${message}
	</c:forEach>
	<c:forEach items="${resultList['failReasonP']}" var="messageP" varStatus="rows_index">
				${messageP}
	</c:forEach>
	<br />
    <s:property value ="title" />${message}
	<BR/> 
	
       
    </div >
</body > 
</html>